package designs.models.composite;

import java.util.Iterator;
import java.util.LinkedList;

public class MilitarySoldier implements MilitaryPerson {
	LinkedList<MilitaryPerson> list;
	String name;
	double salary;

	public MilitarySoldier(String name, double salary) {
		super();
		this.name = name;
		this.salary = salary;
	}

	@Override
	public void add(MilitaryPerson person) {
	}

	@Override
	public void remove(MilitaryPerson person) {
	}

	@Override
	public MilitaryPerson getChild(int index) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Iterator<MilitaryPerson> getAllChild() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isLeaf() {
		return true;
	}

	@Override
	public double getSalary() {
		return salary;
	}

	@Override
	public void setSalary(double salary) {
		this.salary = salary;
	}

}
